package top.frsf.autocodegen.config.web;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Knife4j配置
 *
 * @author FRSF
 * @since 2024/7/26 10:41
 */
@Configuration
public class Knife4jConfig {

    @Bean
    public OpenAPI openAPI(){
        return new OpenAPI()
                .info(new Info()
                        .title("AutoCodeGen")
                        .description("AutoCodeGen Swagger3 文档")
                        .version("v1.0.0") // 版本
                        .contact(new Contact().name("FRSF").email("frsf-h@foxmail.com"))
                );
    }

}
